var censoredWords = ["sad", "bad", "mad"];
var customCensoredWords = [];

function censor(inStr){

	for(idx in censoredWords) {
		intStr = inStr.replace(customCensoredWords[idx], "****");
	}

}

function addCensoredWord(word){
	customCensoredWords.push(word);
}

function getCensoredWords(){
	return censoredWords.concat(customCensoredWords);
}

exports.censor = censor;
exports.addCensoredWord = addCensoredWord;
exports.getCensoredWords = getCensoredWords;